class UrlMappings {

	static mappings = {
		"/$controller/$action?/$id?"{
			constraints {
				id(matches:/\d*/)
			}
		}
		
		"/$controller/"{
			action=[POST:"create", GET:"list" ]
		}
		
		"/$controller/$id"{
			action=[PUT:"update", DELETE:"delete", GET:"list" ]
			constraints {
				id(matches:/\d*/)
			}
		}
		
		"/$controller/$id/$action"{

			constraints {
				id(matches:/\d*/)
			}
		}
		

		"500"(controller : 'error', action: 'busStopExceptions' , exception :Throwable)

	}
}
